<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Number
 *
 * @author JeyDotC
 */
class Number extends UIControl {
    function __construct() {
        $this->addStyleClass("number");
    }

    protected function getControlRendering() {
        if ($this->getRequired()) {
            $this->addStyleClass("required");
        }
        $render = "<input type='number' name='{$this->getName()}' id='_{$this->getId()}' class='{$this->getStyleClasses()}' value='{$this->getValue()}' />";
        return $render;
    }
}

?>
